(function() {
  var Mongoose, Schema, User;

  Mongoose = require('mongoose');

  Schema = Mongoose.Schema;

  User = new Schema({
    account: {
      type: String,
      required: true,
      index: true
    },
    nick: {
      type: String,
      required: true,
      index: true
    },
    type: {
      type: String,
      "enum": ['sina_weibo']
    },
    avatar: {
      type: String
    },
    home: {
      type: String
    },
    location: {
      type: []
    },
    lastLoginTime: {
      type: Date,
      "default": Date.now
    },
    createTime: {
      type: Date,
      "default": Date.now
    },
    originalInfo: {
      type: String
    }
  });

  module.exports = User;

}).call(this);
